﻿<!DOCTYPE html>
<!--[if IE]><![endif]-->
<html>
  
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <title>Class Gdi
   </title>
    <meta name="viewport" content="width=device-width">
    <meta name="title" content="Class Gdi
   ">
    <meta name="generator" content="docfx 2.56.4.0">
    
    <link rel="shortcut icon" href="../favicon.ico">
    <link rel="stylesheet" href="../styles/docfx.vendor.css">
    <link rel="stylesheet" href="../styles/docfx.css">
    <link rel="stylesheet" href="../styles/main.css">
    <meta property="docfx:navrel" content="../toc.html">
    <meta property="docfx:tocrel" content="toc.html">
    
    
    
  </head>
  <body data-spy="scroll" data-target="#affix" data-offset="120">
    <div id="wrapper">
      <header>
        
        <nav id="autocollapse" class="navbar navbar-inverse ng-scope" role="navigation">
          <div class="container">
            <div class="navbar-header">
              <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#navbar">
                <span class="sr-only">Toggle navigation</span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
              </button>
              
              <a class="navbar-brand" href="../index.html">
                <img id="logo" class="svg" src="../logo.svg" alt="">
              </a>
            </div>
            <div class="collapse navbar-collapse" id="navbar">
              <form class="navbar-form navbar-right" role="search" id="search">
                <div class="form-group">
                  <input type="text" class="form-control" id="search-query" placeholder="Search" autocomplete="off">
                </div>
              </form>
            </div>
          </div>
        </nav>
        
        <div class="subnav navbar navbar-default">
          <div class="container hide-when-search" id="breadcrumb">
            <ul class="breadcrumb">
              <li></li>
            </ul>
          </div>
        </div>
      </header>
      <div role="main" class="container body-content hide-when-search">
        
        <div class="sidenav hide-when-search">
          <a class="btn toc-toggle collapse" data-toggle="collapse" href="#sidetoggle" aria-expanded="false" aria-controls="sidetoggle">Show / Hide Table of Contents</a>
          <div class="sidetoggle collapse" id="sidetoggle">
            <div id="sidetoc"></div>
          </div>
        </div>
        <div class="article row grid-right">
          <div class="col-md-10">
            <article class="content wrap" id="_content" data-uid="CADability.Gdi">
  
  
  <h1 id="CADability_Gdi" data-uid="CADability.Gdi" class="text-break">Class Gdi
  </h1>
  <div class="markdown level0 summary"></div>
  <div class="markdown level0 conceptual"></div>
  <div class="inheritance">
    <h5>Inheritance</h5>
    <div class="level0"><span class="xref">System.Object</span></div>
    <div class="level1"><span class="xref">Gdi</span></div>
  </div>
  <div class="inheritedMembers">
    <h5>Inherited Members</h5>
    <div>
      <span class="xref">System.Object.Equals(System.Object)</span>
    </div>
    <div>
      <span class="xref">System.Object.Equals(System.Object, System.Object)</span>
    </div>
    <div>
      <span class="xref">System.Object.GetHashCode()</span>
    </div>
    <div>
      <span class="xref">System.Object.GetType()</span>
    </div>
    <div>
      <span class="xref">System.Object.MemberwiseClone()</span>
    </div>
    <div>
      <span class="xref">System.Object.ReferenceEquals(System.Object, System.Object)</span>
    </div>
    <div>
      <span class="xref">System.Object.ToString()</span>
    </div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="CADability.html">CADability</a></h6>
  <h6><strong>Assembly</strong>: CADability.dll</h6>
  <h5 id="CADability_Gdi_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class Gdi</code></pre>
  </div>
  <h3 id="fields">Fields
  </h3>
  <span class="small pull-right mobile-hide">
    <span class="divider">|</span>
    <a href="https://github.com/SOFAgh/CADability/new/master/apiSpec/new?filename=CADability_Gdi_PFD_DOUBLEBUFFER.md&amp;value=---%0Auid%3A%20CADability.Gdi.PFD_DOUBLEBUFFER%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  </span>
  <span class="small pull-right mobile-hide">
    <a href="https://github.com/SOFAgh/CADability/blob/master/CADability/OpenGL.cs/#L51959">View Source</a>
  </span>
  <h4 id="CADability_Gdi_PFD_DOUBLEBUFFER" data-uid="CADability.Gdi.PFD_DOUBLEBUFFER">PFD_DOUBLEBUFFER</h4>
  <div class="markdown level1 summary"><p>
    The buffer is double-buffered.  This flag and <a class="xref" href="CADability.Gdi.html#CADability_Gdi_PFD_SUPPORT_GDI">PFD_SUPPORT_GDI</a>
    are mutually exclusive in the current generic implementation.
</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public const int PFD_DOUBLEBUFFER = 1</code></pre>
  </div>
  <h5 class="fieldValue">Field Value</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Int32</span></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  <span class="small pull-right mobile-hide">
    <span class="divider">|</span>
    <a href="https://github.com/SOFAgh/CADability/new/master/apiSpec/new?filename=CADability_Gdi_PFD_DRAW_TO_BITMAP.md&amp;value=---%0Auid%3A%20CADability.Gdi.PFD_DRAW_TO_BITMAP%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  </span>
  <span class="small pull-right mobile-hide">
    <a href="https://github.com/SOFAgh/CADability/blob/master/CADability/OpenGL.cs/#L51990">View Source</a>
  </span>
  <h4 id="CADability_Gdi_PFD_DRAW_TO_BITMAP" data-uid="CADability.Gdi.PFD_DRAW_TO_BITMAP">PFD_DRAW_TO_BITMAP</h4>
  <div class="markdown level1 summary"><p>
    The buffer can draw to a memory bitmap.
</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public const int PFD_DRAW_TO_BITMAP = 8</code></pre>
  </div>
  <h5 class="fieldValue">Field Value</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Int32</span></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  <span class="small pull-right mobile-hide">
    <span class="divider">|</span>
    <a href="https://github.com/SOFAgh/CADability/new/master/apiSpec/new?filename=CADability_Gdi_PFD_DRAW_TO_WINDOW.md&amp;value=---%0Auid%3A%20CADability.Gdi.PFD_DRAW_TO_WINDOW%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  </span>
  <span class="small pull-right mobile-hide">
    <a href="https://github.com/SOFAgh/CADability/blob/master/CADability/OpenGL.cs/#L51980">View Source</a>
  </span>
  <h4 id="CADability_Gdi_PFD_DRAW_TO_WINDOW" data-uid="CADability.Gdi.PFD_DRAW_TO_WINDOW">PFD_DRAW_TO_WINDOW</h4>
  <div class="markdown level1 summary"><p>
    The buffer can draw to a window or device surface.
</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public const int PFD_DRAW_TO_WINDOW = 4</code></pre>
  </div>
  <h5 class="fieldValue">Field Value</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Int32</span></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  <span class="small pull-right mobile-hide">
    <span class="divider">|</span>
    <a href="https://github.com/SOFAgh/CADability/new/master/apiSpec/new?filename=CADability_Gdi_PFD_GENERIC_ACCELERATED.md&amp;value=---%0Auid%3A%20CADability.Gdi.PFD_GENERIC_ACCELERATED%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  </span>
  <span class="small pull-right mobile-hide">
    <a href="https://github.com/SOFAgh/CADability/blob/master/CADability/OpenGL.cs/#L52118">View Source</a>
  </span>
  <h4 id="CADability_Gdi_PFD_GENERIC_ACCELERATED" data-uid="CADability.Gdi.PFD_GENERIC_ACCELERATED">PFD_GENERIC_ACCELERATED</h4>
  <div class="markdown level1 summary"><p>
    The pixel format is supported by a device driver that accelerates the generic
    implementation.  If this flag is clear and the
<a class="xref" href="CADability.Gdi.html#CADability_Gdi_PFD_GENERIC_FORMAT">PFD_GENERIC_FORMAT</a> flag is set, the pixel format is supported
by the generic implementation only.
</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public const int PFD_GENERIC_ACCELERATED = 4096</code></pre>
  </div>
  <h5 class="fieldValue">Field Value</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Int32</span></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  <span class="small pull-right mobile-hide">
    <span class="divider">|</span>
    <a href="https://github.com/SOFAgh/CADability/new/master/apiSpec/new?filename=CADability_Gdi_PFD_GENERIC_FORMAT.md&amp;value=---%0Auid%3A%20CADability.Gdi.PFD_GENERIC_FORMAT%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  </span>
  <span class="small pull-right mobile-hide">
    <a href="https://github.com/SOFAgh/CADability/blob/master/CADability/OpenGL.cs/#L52024">View Source</a>
  </span>
  <h4 id="CADability_Gdi_PFD_GENERIC_FORMAT" data-uid="CADability.Gdi.PFD_GENERIC_FORMAT">PFD_GENERIC_FORMAT</h4>
  <div class="markdown level1 summary"><p>
    The pixel format is supported by the GDI software implementation, which is
    also known as the generic implementation.  If this bit is clear, the pixel
    format is supported by a device driver or hardware.
</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public const int PFD_GENERIC_FORMAT = 64</code></pre>
  </div>
  <h5 class="fieldValue">Field Value</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Int32</span></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  <span class="small pull-right mobile-hide">
    <span class="divider">|</span>
    <a href="https://github.com/SOFAgh/CADability/new/master/apiSpec/new?filename=CADability_Gdi_PFD_MAIN_PLANE.md&amp;value=---%0Auid%3A%20CADability.Gdi.PFD_MAIN_PLANE%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  </span>
  <span class="small pull-right mobile-hide">
    <a href="https://github.com/SOFAgh/CADability/blob/master/CADability/OpenGL.cs/#L51948">View Source</a>
  </span>
  <h4 id="CADability_Gdi_PFD_MAIN_PLANE" data-uid="CADability.Gdi.PFD_MAIN_PLANE">PFD_MAIN_PLANE</h4>
  <div class="markdown level1 summary"><p>The layer is the main plane.</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public const int PFD_MAIN_PLANE = 0</code></pre>
  </div>
  <h5 class="fieldValue">Field Value</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Int32</span></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  <span class="small pull-right mobile-hide">
    <span class="divider">|</span>
    <a href="https://github.com/SOFAgh/CADability/new/master/apiSpec/new?filename=CADability_Gdi_PFD_NEED_PALETTE.md&amp;value=---%0Auid%3A%20CADability.Gdi.PFD_NEED_PALETTE%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  </span>
  <span class="small pull-right mobile-hide">
    <a href="https://github.com/SOFAgh/CADability/blob/master/CADability/OpenGL.cs/#L52039">View Source</a>
  </span>
  <h4 id="CADability_Gdi_PFD_NEED_PALETTE" data-uid="CADability.Gdi.PFD_NEED_PALETTE">PFD_NEED_PALETTE</h4>
  <div class="markdown level1 summary"><p>
    The buffer uses RGBA pixels on a palette-managed device.  A logical palette
    is required to achieve the best results for this pixel type.  Colors in the
    palette should be specified according to the values of the <strong>cRedBits</strong>,
<strong>cRedShift</strong>, <strong>cGreenBits</strong>, <strong>cGreenShift</strong>, <strong>cBluebits</strong>,
and <strong>cBlueShift</strong> members.  The palette should be created and realized in
the device context before calling <a class="xref" href="CADability.Wgl.html#CADability_Wgl_wglMakeCurrent_System_IntPtr_System_IntPtr_">wglMakeCurrent(IntPtr, IntPtr)</a>.
</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public const int PFD_NEED_PALETTE = 128</code></pre>
  </div>
  <h5 class="fieldValue">Field Value</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Int32</span></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  <span class="small pull-right mobile-hide">
    <span class="divider">|</span>
    <a href="https://github.com/SOFAgh/CADability/new/master/apiSpec/new?filename=CADability_Gdi_PFD_NEED_SYSTEM_PALETTE.md&amp;value=---%0Auid%3A%20CADability.Gdi.PFD_NEED_SYSTEM_PALETTE%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  </span>
  <span class="small pull-right mobile-hide">
    <a href="https://github.com/SOFAgh/CADability/blob/master/CADability/OpenGL.cs/#L52063">View Source</a>
  </span>
  <h4 id="CADability_Gdi_PFD_NEED_SYSTEM_PALETTE" data-uid="CADability.Gdi.PFD_NEED_SYSTEM_PALETTE">PFD_NEED_SYSTEM_PALETTE</h4>
  <div class="markdown level1 summary"><p>
    Defined in the pixel format descriptors of hardware that supports one
    hardware palette in 256-color mode only.  For such systems to use
    hardware acceleration, the hardware palette must be in a fixed order
    (for example, 3-3-2) when in RGBA mode or must match the logical palette
    when in color-index mode.
</p>
<p>
    When this flag is set, you must call <see cref="!:SetSystemPaletteUse"></see> in
    your program to force a one-to-one mapping of the logical palette and the
    system palette.  If your OpenGL hardware supports multiple hardware palettes
    and the device driver can allocate spare hardware palettes for OpenGL, this
    flag is typically clear.
</p>
<p>
    This flag is not set in the generic pixel formats.
</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public const int PFD_NEED_SYSTEM_PALETTE = 256</code></pre>
  </div>
  <h5 class="fieldValue">Field Value</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Int32</span></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  <span class="small pull-right mobile-hide">
    <span class="divider">|</span>
    <a href="https://github.com/SOFAgh/CADability/new/master/apiSpec/new?filename=CADability_Gdi_PFD_STEREO.md&amp;value=---%0Auid%3A%20CADability.Gdi.PFD_STEREO%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  </span>
  <span class="small pull-right mobile-hide">
    <a href="https://github.com/SOFAgh/CADability/blob/master/CADability/OpenGL.cs/#L51970">View Source</a>
  </span>
  <h4 id="CADability_Gdi_PFD_STEREO" data-uid="CADability.Gdi.PFD_STEREO">PFD_STEREO</h4>
  <div class="markdown level1 summary"><p>
    The buffer is stereoscopic.  This flag is not supported in the current
    generic implementation.
</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public const int PFD_STEREO = 2</code></pre>
  </div>
  <h5 class="fieldValue">Field Value</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Int32</span></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  <span class="small pull-right mobile-hide">
    <span class="divider">|</span>
    <a href="https://github.com/SOFAgh/CADability/new/master/apiSpec/new?filename=CADability_Gdi_PFD_SUPPORT_DIRECTDRAW.md&amp;value=---%0Auid%3A%20CADability.Gdi.PFD_SUPPORT_DIRECTDRAW%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  </span>
  <span class="small pull-right mobile-hide">
    <a href="https://github.com/SOFAgh/CADability/blob/master/CADability/OpenGL.cs/#L52128">View Source</a>
  </span>
  <h4 id="CADability_Gdi_PFD_SUPPORT_DIRECTDRAW" data-uid="CADability.Gdi.PFD_SUPPORT_DIRECTDRAW">PFD_SUPPORT_DIRECTDRAW</h4>
  <div class="markdown level1 summary"><p>
    The buffer supports DirectDraw drawing.
</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public const int PFD_SUPPORT_DIRECTDRAW = 8192</code></pre>
  </div>
  <h5 class="fieldValue">Field Value</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Int32</span></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  <span class="small pull-right mobile-hide">
    <span class="divider">|</span>
    <a href="https://github.com/SOFAgh/CADability/new/master/apiSpec/new?filename=CADability_Gdi_PFD_SUPPORT_GDI.md&amp;value=---%0Auid%3A%20CADability.Gdi.PFD_SUPPORT_GDI%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  </span>
  <span class="small pull-right mobile-hide">
    <a href="https://github.com/SOFAgh/CADability/blob/master/CADability/OpenGL.cs/#L52002">View Source</a>
  </span>
  <h4 id="CADability_Gdi_PFD_SUPPORT_GDI" data-uid="CADability.Gdi.PFD_SUPPORT_GDI">PFD_SUPPORT_GDI</h4>
  <div class="markdown level1 summary"><p>
    The buffer supports GDI drawing.  This flag and
<a class="xref" href="CADability.Gdi.html#CADability_Gdi_PFD_DOUBLEBUFFER">PFD_DOUBLEBUFFER</a> are mutually exclusive in the current generic
implementation.
</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public const int PFD_SUPPORT_GDI = 16</code></pre>
  </div>
  <h5 class="fieldValue">Field Value</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Int32</span></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  <span class="small pull-right mobile-hide">
    <span class="divider">|</span>
    <a href="https://github.com/SOFAgh/CADability/new/master/apiSpec/new?filename=CADability_Gdi_PFD_SUPPORT_OPENGL.md&amp;value=---%0Auid%3A%20CADability.Gdi.PFD_SUPPORT_OPENGL%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  </span>
  <span class="small pull-right mobile-hide">
    <a href="https://github.com/SOFAgh/CADability/blob/master/CADability/OpenGL.cs/#L52012">View Source</a>
  </span>
  <h4 id="CADability_Gdi_PFD_SUPPORT_OPENGL" data-uid="CADability.Gdi.PFD_SUPPORT_OPENGL">PFD_SUPPORT_OPENGL</h4>
  <div class="markdown level1 summary"><p>
    The buffer supports OpenGL drawing.
</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public const int PFD_SUPPORT_OPENGL = 32</code></pre>
  </div>
  <h5 class="fieldValue">Field Value</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Int32</span></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  <span class="small pull-right mobile-hide">
    <span class="divider">|</span>
    <a href="https://github.com/SOFAgh/CADability/new/master/apiSpec/new?filename=CADability_Gdi_PFD_SWAP_COPY.md&amp;value=---%0Auid%3A%20CADability.Gdi.PFD_SWAP_COPY%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  </span>
  <span class="small pull-right mobile-hide">
    <a href="https://github.com/SOFAgh/CADability/blob/master/CADability/OpenGL.cs/#L52092">View Source</a>
  </span>
  <h4 id="CADability_Gdi_PFD_SWAP_COPY" data-uid="CADability.Gdi.PFD_SWAP_COPY">PFD_SWAP_COPY</h4>
  <div class="markdown level1 summary"><p>
    Specifies the content of the back buffer in the double-buffered main color
    plane following a buffer swap.  Swapping the color buffers causes the content
    of the back buffer to be copied to the front buffer.  The content of the back
    buffer is not affected by the swap.  <strong>PFD_SWAP_COPY</strong> is a hint only and
    might not be provided by a driver.
</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public const int PFD_SWAP_COPY = 1024</code></pre>
  </div>
  <h5 class="fieldValue">Field Value</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Int32</span></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  <span class="small pull-right mobile-hide">
    <span class="divider">|</span>
    <a href="https://github.com/SOFAgh/CADability/new/master/apiSpec/new?filename=CADability_Gdi_PFD_SWAP_EXCHANGE.md&amp;value=---%0Auid%3A%20CADability.Gdi.PFD_SWAP_EXCHANGE%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  </span>
  <span class="small pull-right mobile-hide">
    <a href="https://github.com/SOFAgh/CADability/blob/master/CADability/OpenGL.cs/#L52078">View Source</a>
  </span>
  <h4 id="CADability_Gdi_PFD_SWAP_EXCHANGE" data-uid="CADability.Gdi.PFD_SWAP_EXCHANGE">PFD_SWAP_EXCHANGE</h4>
  <div class="markdown level1 summary"><p>
    Specifies the content of the back buffer in the double-buffered main color
    plane following a buffer swap.  Swapping the color buffers causes the
    exchange of the back buffer&apos;s content with the front buffer&apos;s content.
    Following the swap, the back buffer&apos;s content contains the front buffer&apos;s
    content before the swap. <strong>PFD_SWAP_EXCHANGE</strong> is a hint only and might
    not be provided by a driver.
</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public const int PFD_SWAP_EXCHANGE = 512</code></pre>
  </div>
  <h5 class="fieldValue">Field Value</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Int32</span></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  <span class="small pull-right mobile-hide">
    <span class="divider">|</span>
    <a href="https://github.com/SOFAgh/CADability/new/master/apiSpec/new?filename=CADability_Gdi_PFD_SWAP_LAYER_BUFFERS.md&amp;value=---%0Auid%3A%20CADability.Gdi.PFD_SWAP_LAYER_BUFFERS%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  </span>
  <span class="small pull-right mobile-hide">
    <a href="https://github.com/SOFAgh/CADability/blob/master/CADability/OpenGL.cs/#L52105">View Source</a>
  </span>
  <h4 id="CADability_Gdi_PFD_SWAP_LAYER_BUFFERS" data-uid="CADability.Gdi.PFD_SWAP_LAYER_BUFFERS">PFD_SWAP_LAYER_BUFFERS</h4>
  <div class="markdown level1 summary"><p>
    Indicates whether a device can swap individual layer planes with pixel
    formats that include double-buffered overlay or underlay planes.
    Otherwise all layer planes are swapped together as a group.  When this
    flag is set, <see cref="!:Wgl.wglSwapLayerBuffers"></see> is supported.
</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public const int PFD_SWAP_LAYER_BUFFERS = 2048</code></pre>
  </div>
  <h5 class="fieldValue">Field Value</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Int32</span></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  <span class="small pull-right mobile-hide">
    <span class="divider">|</span>
    <a href="https://github.com/SOFAgh/CADability/new/master/apiSpec/new?filename=CADability_Gdi_PFD_TYPE_COLORINDEX.md&amp;value=---%0Auid%3A%20CADability.Gdi.PFD_TYPE_COLORINDEX%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  </span>
  <span class="small pull-right mobile-hide">
    <a href="https://github.com/SOFAgh/CADability/blob/master/CADability/OpenGL.cs/#L51940">View Source</a>
  </span>
  <h4 id="CADability_Gdi_PFD_TYPE_COLORINDEX" data-uid="CADability.Gdi.PFD_TYPE_COLORINDEX">PFD_TYPE_COLORINDEX</h4>
  <div class="markdown level1 summary"><p>Color-index pixels.  Each pixel uses a color-index value.</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public const int PFD_TYPE_COLORINDEX = 1</code></pre>
  </div>
  <h5 class="fieldValue">Field Value</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Int32</span></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  <span class="small pull-right mobile-hide">
    <span class="divider">|</span>
    <a href="https://github.com/SOFAgh/CADability/new/master/apiSpec/new?filename=CADability_Gdi_PFD_TYPE_RGBA.md&amp;value=---%0Auid%3A%20CADability.Gdi.PFD_TYPE_RGBA%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  </span>
  <span class="small pull-right mobile-hide">
    <a href="https://github.com/SOFAgh/CADability/blob/master/CADability/OpenGL.cs/#L51932">View Source</a>
  </span>
  <h4 id="CADability_Gdi_PFD_TYPE_RGBA" data-uid="CADability.Gdi.PFD_TYPE_RGBA">PFD_TYPE_RGBA</h4>
  <div class="markdown level1 summary"><p>RGBA pixels.  Each pixel has four components in this order: red, green, blue,
and alpha.</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public const int PFD_TYPE_RGBA = 0</code></pre>
  </div>
  <h5 class="fieldValue">Field Value</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Int32</span></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  <h3 id="methods">Methods
  </h3>
  
  
  <a id="CADability_Gdi__SetPixelFormat_" data-uid="CADability.Gdi._SetPixelFormat*"></a>
  <h4 id="CADability_Gdi__SetPixelFormat_System_IntPtr_System_Int32_CADability_Gdi_PIXELFORMATDESCRIPTOR__" data-uid="CADability.Gdi._SetPixelFormat(System.IntPtr,System.Int32,CADability.Gdi.PIXELFORMATDESCRIPTOR@)">_SetPixelFormat(IntPtr, Int32, ref Gdi.PIXELFORMATDESCRIPTOR)</h4>
  <div class="markdown level1 summary"></div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">[CLSCompliant(false)]
public static bool _SetPixelFormat(IntPtr deviceContext, int pixelFormat, ref Gdi.PIXELFORMATDESCRIPTOR pixelFormatDescriptor)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.IntPtr</span></td>
        <td><span class="parametername">deviceContext</span></td>
        <td></td>
      </tr>
      <tr>
        <td><span class="xref">System.Int32</span></td>
        <td><span class="parametername">pixelFormat</span></td>
        <td></td>
      </tr>
      <tr>
        <td><a class="xref" href="CADability.Gdi.PIXELFORMATDESCRIPTOR.html">Gdi.PIXELFORMATDESCRIPTOR</a></td>
        <td><span class="parametername">pixelFormatDescriptor</span></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Boolean</span></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  
  
  <a id="CADability_Gdi_ChoosePixelFormat_" data-uid="CADability.Gdi.ChoosePixelFormat*"></a>
  <h4 id="CADability_Gdi_ChoosePixelFormat_System_IntPtr_CADability_Gdi_PIXELFORMATDESCRIPTOR__" data-uid="CADability.Gdi.ChoosePixelFormat(System.IntPtr,CADability.Gdi.PIXELFORMATDESCRIPTOR@)">ChoosePixelFormat(IntPtr, ref Gdi.PIXELFORMATDESCRIPTOR)</h4>
  <div class="markdown level1 summary"></div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static int ChoosePixelFormat(IntPtr deviceContext, ref Gdi.PIXELFORMATDESCRIPTOR pixelFormatDescriptor)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.IntPtr</span></td>
        <td><span class="parametername">deviceContext</span></td>
        <td></td>
      </tr>
      <tr>
        <td><a class="xref" href="CADability.Gdi.PIXELFORMATDESCRIPTOR.html">Gdi.PIXELFORMATDESCRIPTOR</a></td>
        <td><span class="parametername">pixelFormatDescriptor</span></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Int32</span></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  
  
  <a id="CADability_Gdi_CreateCompatibleDC_" data-uid="CADability.Gdi.CreateCompatibleDC*"></a>
  <h4 id="CADability_Gdi_CreateCompatibleDC_System_IntPtr_" data-uid="CADability.Gdi.CreateCompatibleDC(System.IntPtr)">CreateCompatibleDC(IntPtr)</h4>
  <div class="markdown level1 summary"></div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static IntPtr CreateCompatibleDC(IntPtr hdc)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.IntPtr</span></td>
        <td><span class="parametername">hdc</span></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.IntPtr</span></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  
  
  <a id="CADability_Gdi_CreateFont_" data-uid="CADability.Gdi.CreateFont*"></a>
  <h4 id="CADability_Gdi_CreateFont_System_Int32_System_Int32_System_Int32_System_Int32_System_Int32_System_Boolean_System_Boolean_System_Boolean_System_Int32_System_Int32_System_Int32_System_Int32_System_Int32_System_String_" data-uid="CADability.Gdi.CreateFont(System.Int32,System.Int32,System.Int32,System.Int32,System.Int32,System.Boolean,System.Boolean,System.Boolean,System.Int32,System.Int32,System.Int32,System.Int32,System.Int32,System.String)">CreateFont(Int32, Int32, Int32, Int32, Int32, Boolean, Boolean, Boolean, Int32, Int32, Int32, Int32, Int32, String)</h4>
  <div class="markdown level1 summary"></div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static IntPtr CreateFont(int height, int width, int escapement, int orientation, int weight, bool italic, bool underline, bool strikeOut, int charSet, int outputPrecision, int clipPrecision, int quality, int pitchAndFamily, string typeFace)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Int32</span></td>
        <td><span class="parametername">height</span></td>
        <td></td>
      </tr>
      <tr>
        <td><span class="xref">System.Int32</span></td>
        <td><span class="parametername">width</span></td>
        <td></td>
      </tr>
      <tr>
        <td><span class="xref">System.Int32</span></td>
        <td><span class="parametername">escapement</span></td>
        <td></td>
      </tr>
      <tr>
        <td><span class="xref">System.Int32</span></td>
        <td><span class="parametername">orientation</span></td>
        <td></td>
      </tr>
      <tr>
        <td><span class="xref">System.Int32</span></td>
        <td><span class="parametername">weight</span></td>
        <td></td>
      </tr>
      <tr>
        <td><span class="xref">System.Boolean</span></td>
        <td><span class="parametername">italic</span></td>
        <td></td>
      </tr>
      <tr>
        <td><span class="xref">System.Boolean</span></td>
        <td><span class="parametername">underline</span></td>
        <td></td>
      </tr>
      <tr>
        <td><span class="xref">System.Boolean</span></td>
        <td><span class="parametername">strikeOut</span></td>
        <td></td>
      </tr>
      <tr>
        <td><span class="xref">System.Int32</span></td>
        <td><span class="parametername">charSet</span></td>
        <td></td>
      </tr>
      <tr>
        <td><span class="xref">System.Int32</span></td>
        <td><span class="parametername">outputPrecision</span></td>
        <td></td>
      </tr>
      <tr>
        <td><span class="xref">System.Int32</span></td>
        <td><span class="parametername">clipPrecision</span></td>
        <td></td>
      </tr>
      <tr>
        <td><span class="xref">System.Int32</span></td>
        <td><span class="parametername">quality</span></td>
        <td></td>
      </tr>
      <tr>
        <td><span class="xref">System.Int32</span></td>
        <td><span class="parametername">pitchAndFamily</span></td>
        <td></td>
      </tr>
      <tr>
        <td><span class="xref">System.String</span></td>
        <td><span class="parametername">typeFace</span></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.IntPtr</span></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  
  
  <a id="CADability_Gdi_DeleteDC_" data-uid="CADability.Gdi.DeleteDC*"></a>
  <h4 id="CADability_Gdi_DeleteDC_System_IntPtr_" data-uid="CADability.Gdi.DeleteDC(System.IntPtr)">DeleteDC(IntPtr)</h4>
  <div class="markdown level1 summary"></div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static bool DeleteDC(IntPtr hdc)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.IntPtr</span></td>
        <td><span class="parametername">hdc</span></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Boolean</span></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  
  
  <a id="CADability_Gdi_DeleteObject_" data-uid="CADability.Gdi.DeleteObject*"></a>
  <h4 id="CADability_Gdi_DeleteObject_System_IntPtr_" data-uid="CADability.Gdi.DeleteObject(System.IntPtr)">DeleteObject(IntPtr)</h4>
  <div class="markdown level1 summary"></div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static bool DeleteObject(IntPtr objectHandle)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.IntPtr</span></td>
        <td><span class="parametername">objectHandle</span></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Boolean</span></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  
  
  <a id="CADability_Gdi_DescribePixelFormat_" data-uid="CADability.Gdi.DescribePixelFormat*"></a>
  <h4 id="CADability_Gdi_DescribePixelFormat_System_IntPtr_System_Int32_System_UInt32_System_IntPtr_" data-uid="CADability.Gdi.DescribePixelFormat(System.IntPtr,System.Int32,System.UInt32,System.IntPtr)">DescribePixelFormat(IntPtr, Int32, UInt32, IntPtr)</h4>
  <div class="markdown level1 summary"></div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static int DescribePixelFormat(IntPtr hdc, int iPixelFormat, uint nBytes, IntPtr pfd)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.IntPtr</span></td>
        <td><span class="parametername">hdc</span></td>
        <td></td>
      </tr>
      <tr>
        <td><span class="xref">System.Int32</span></td>
        <td><span class="parametername">iPixelFormat</span></td>
        <td></td>
      </tr>
      <tr>
        <td><span class="xref">System.UInt32</span></td>
        <td><span class="parametername">nBytes</span></td>
        <td></td>
      </tr>
      <tr>
        <td><span class="xref">System.IntPtr</span></td>
        <td><span class="parametername">pfd</span></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Int32</span></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  
  
  <a id="CADability_Gdi_GetCharABCWidths_" data-uid="CADability.Gdi.GetCharABCWidths*"></a>
  <h4 id="CADability_Gdi_GetCharABCWidths_System_IntPtr_System_UInt32_System_UInt32_CADability_Gdi_ABC___" data-uid="CADability.Gdi.GetCharABCWidths(System.IntPtr,System.UInt32,System.UInt32,CADability.Gdi.ABC[])">GetCharABCWidths(IntPtr, UInt32, UInt32, Gdi.ABC[])</h4>
  <div class="markdown level1 summary"></div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static bool GetCharABCWidths(IntPtr hdc, uint uFirstChar, uint uLastChar, Gdi.ABC[] lpabc)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.IntPtr</span></td>
        <td><span class="parametername">hdc</span></td>
        <td></td>
      </tr>
      <tr>
        <td><span class="xref">System.UInt32</span></td>
        <td><span class="parametername">uFirstChar</span></td>
        <td></td>
      </tr>
      <tr>
        <td><span class="xref">System.UInt32</span></td>
        <td><span class="parametername">uLastChar</span></td>
        <td></td>
      </tr>
      <tr>
        <td><a class="xref" href="CADability.Gdi.ABC.html">Gdi.ABC</a>[]</td>
        <td><span class="parametername">lpabc</span></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Boolean</span></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  
  
  <a id="CADability_Gdi_GetCharWidth32_" data-uid="CADability.Gdi.GetCharWidth32*"></a>
  <h4 id="CADability_Gdi_GetCharWidth32_System_IntPtr_System_UInt32_System_UInt32_System_Int32___" data-uid="CADability.Gdi.GetCharWidth32(System.IntPtr,System.UInt32,System.UInt32,System.Int32[])">GetCharWidth32(IntPtr, UInt32, UInt32, Int32[])</h4>
  <div class="markdown level1 summary"></div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static bool GetCharWidth32(IntPtr hdc, uint uFirstChar, uint uLastChar, int[] lpwidth)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.IntPtr</span></td>
        <td><span class="parametername">hdc</span></td>
        <td></td>
      </tr>
      <tr>
        <td><span class="xref">System.UInt32</span></td>
        <td><span class="parametername">uFirstChar</span></td>
        <td></td>
      </tr>
      <tr>
        <td><span class="xref">System.UInt32</span></td>
        <td><span class="parametername">uLastChar</span></td>
        <td></td>
      </tr>
      <tr>
        <td><span class="xref">System.Int32</span>[]</td>
        <td><span class="parametername">lpwidth</span></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Boolean</span></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  
  
  <a id="CADability_Gdi_GetKerningPairs_" data-uid="CADability.Gdi.GetKerningPairs*"></a>
  <h4 id="CADability_Gdi_GetKerningPairs_System_IntPtr_System_Int32_CADability_Gdi_KERNINGPAIR___" data-uid="CADability.Gdi.GetKerningPairs(System.IntPtr,System.Int32,CADability.Gdi.KERNINGPAIR[])">GetKerningPairs(IntPtr, Int32, Gdi.KERNINGPAIR[])</h4>
  <div class="markdown level1 summary"></div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static int GetKerningPairs(IntPtr hDC, int cPairs, Gdi.KERNINGPAIR[] lpkrnpair)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.IntPtr</span></td>
        <td><span class="parametername">hDC</span></td>
        <td></td>
      </tr>
      <tr>
        <td><span class="xref">System.Int32</span></td>
        <td><span class="parametername">cPairs</span></td>
        <td></td>
      </tr>
      <tr>
        <td><a class="xref" href="CADability.Gdi.KERNINGPAIR.html">Gdi.KERNINGPAIR</a>[]</td>
        <td><span class="parametername">lpkrnpair</span></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Int32</span></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  
  
  <a id="CADability_Gdi_GetPixelFormat_" data-uid="CADability.Gdi.GetPixelFormat*"></a>
  <h4 id="CADability_Gdi_GetPixelFormat_System_IntPtr_" data-uid="CADability.Gdi.GetPixelFormat(System.IntPtr)">GetPixelFormat(IntPtr)</h4>
  <div class="markdown level1 summary"></div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static int GetPixelFormat(IntPtr deviceContext)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.IntPtr</span></td>
        <td><span class="parametername">deviceContext</span></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Int32</span></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  
  
  <a id="CADability_Gdi_SelectObject_" data-uid="CADability.Gdi.SelectObject*"></a>
  <h4 id="CADability_Gdi_SelectObject_System_IntPtr_System_IntPtr_" data-uid="CADability.Gdi.SelectObject(System.IntPtr,System.IntPtr)">SelectObject(IntPtr, IntPtr)</h4>
  <div class="markdown level1 summary"></div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static IntPtr SelectObject(IntPtr deviceContext, IntPtr objectHandle)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.IntPtr</span></td>
        <td><span class="parametername">deviceContext</span></td>
        <td></td>
      </tr>
      <tr>
        <td><span class="xref">System.IntPtr</span></td>
        <td><span class="parametername">objectHandle</span></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.IntPtr</span></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  <span class="small pull-right mobile-hide">
    <span class="divider">|</span>
    <a href="https://github.com/SOFAgh/CADability/new/master/apiSpec/new?filename=CADability_Gdi_SetPixelFormat_System_IntPtr_System_Int32_CADability_Gdi_PIXELFORMATDESCRIPTOR__.md&amp;value=---%0Auid%3A%20CADability.Gdi.SetPixelFormat(System.IntPtr%2CSystem.Int32%2CCADability.Gdi.PIXELFORMATDESCRIPTOR%40)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  </span>
  <span class="small pull-right mobile-hide">
    <a href="https://github.com/SOFAgh/CADability/blob/master/CADability/OpenGL.cs/#L52482">View Source</a>
  </span>
  <a id="CADability_Gdi_SetPixelFormat_" data-uid="CADability.Gdi.SetPixelFormat*"></a>
  <h4 id="CADability_Gdi_SetPixelFormat_System_IntPtr_System_Int32_CADability_Gdi_PIXELFORMATDESCRIPTOR__" data-uid="CADability.Gdi.SetPixelFormat(System.IntPtr,System.Int32,CADability.Gdi.PIXELFORMATDESCRIPTOR@)">SetPixelFormat(IntPtr, Int32, ref Gdi.PIXELFORMATDESCRIPTOR)</h4>
  <div class="markdown level1 summary"></div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static bool SetPixelFormat(IntPtr deviceContext, int pixelFormat, ref Gdi.PIXELFORMATDESCRIPTOR pixelFormatDescriptor)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.IntPtr</span></td>
        <td><span class="parametername">deviceContext</span></td>
        <td></td>
      </tr>
      <tr>
        <td><span class="xref">System.Int32</span></td>
        <td><span class="parametername">pixelFormat</span></td>
        <td></td>
      </tr>
      <tr>
        <td><a class="xref" href="CADability.Gdi.PIXELFORMATDESCRIPTOR.html">Gdi.PIXELFORMATDESCRIPTOR</a></td>
        <td><span class="parametername">pixelFormatDescriptor</span></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Boolean</span></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  
  
  <a id="CADability_Gdi_SwapBuffersFast_" data-uid="CADability.Gdi.SwapBuffersFast*"></a>
  <h4 id="CADability_Gdi_SwapBuffersFast_System_IntPtr_" data-uid="CADability.Gdi.SwapBuffersFast(System.IntPtr)">SwapBuffersFast(IntPtr)</h4>
  <div class="markdown level1 summary"></div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static int SwapBuffersFast(IntPtr deviceContext)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.IntPtr</span></td>
        <td><span class="parametername">deviceContext</span></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Int32</span></td>
        <td></td>
      </tr>
    </tbody>
  </table>
</article>
          </div>
          
          <div class="hidden-sm col-md-2" role="complementary">
            <div class="sideaffix">
              <div class="contribution">
                <ul class="nav">
                  <li>
                    <a href="https://github.com/SOFAgh/CADability/new/master/apiSpec/new?filename=CADability_Gdi.md&amp;value=---%0Auid%3A%20CADability.Gdi%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A" class="contribution-link">Improve this Doc</a>
                  </li>
                  <li>
                    <a href="https://github.com/SOFAgh/CADability/blob/master/CADability/OpenGL.cs/#L51921" class="contribution-link">View Source</a>
                  </li>
                </ul>
              </div>
              <nav class="bs-docs-sidebar hidden-print hidden-xs hidden-sm affix" id="affix">
                <h5>In This Article</h5>
                <div></div>
              </nav>
            </div>
          </div>
        </div>
      </div>
      
      <footer>
        <div class="grad-bottom"></div>
        <div class="footer">
          <div class="container">
            <span class="pull-right">
              <a href="#top">Back to top</a>
            </span>
            
            <span>Generated by <strong>DocFX</strong></span>
          </div>
        </div>
      </footer>
    </div>
    
    <script type="text/javascript" src="../styles/docfx.vendor.js"></script>
    <script type="text/javascript" src="../styles/docfx.js"></script>
    <script type="text/javascript" src="../styles/main.js"></script>
  </body>
</html>
